From: Matthieu Gallien Date: Mon, 27 Jan 2025 17:56:48 +0000 (+0100) Subject: fix wrong if condition X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~2^2~104^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=fb0b89f5fa24206257201f55ee2afc896fc4c5fd;p=nextcloud-desktop.git fix wrong if condition Signed-off-by: Matthieu Gallien --- diff --git a/src/libsync/clientsideencryption.cpp b/src/libsync/clientsideencryption.cpp index d797991ad..3b035f8b3 100644 --- a/src/libsync/clientsideencryption.cpp +++ b/src/libsync/clientsideencryption.cpp @@ -1694,7 +1694,7 @@ void ClientSideEncryption::decryptPrivateKey(const AccountPtr &account, const QB _privateKey = privateKey; } else { const auto deprecatedSha1PrivateKey = EncryptionHelper::decryptPrivateKey(deprecatedSha1Password, key); - if (!privateKey.isEmpty()) { + if (!deprecatedSha1PrivateKey.isEmpty()) { _privateKey = deprecatedSha1PrivateKey; } else { _privateKey = EncryptionHelper::decryptPrivateKey(deprecatedPassword, key);